package net.web.belerofont.action;

public interface URIMap {
	enum TransferType { INVALID(0), FORWARD(1), REDIRECT(2);
		private int id = -1;
		
		TransferType(int id) {
			this.id = id;
		}
		
		public int getId() {
			return id;
		}

		public TransferType get(String value) {
			if (value.equalsIgnoreCase("FORWARD")) return FORWARD; 
			if (value.equalsIgnoreCase("REDIRECT")) return REDIRECT; 
			return INVALID;
		}
		
	}
	
	public String getUri();
	
	public TransferType getTransferType();
}
 
